<div class="pm_modal small very-important {{ctrl.class}}" role="dialog" style="display: block;">
    <form method="post"
          class="modal-dialog"
          ng-submit="passwordModalForm.$valid && ctrl.submit()"
          name="passwordModalForm"
          novalidate>
        <button type="button"
                ng-click="ctrl.cancel()"
                aria-hidden="true"
                title-translate="Close"
                title-translate-context="Action" class="fa fa-times close"></button>
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title"
                    translate
                    translate-context="Title">Sign in again to continue</h4>
            </div>
            <div class="modal-body pm_form">
                <login-password-input login-password="ctrl.loginPassword"
                                      two-factor-code="ctrl.twoFactorCode"
                                      has-two-factor="ctrl.hasTwoFactor"
                                      form="passwordModalForm"></login-password-input>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button"
                    class="pm_button modal-footer-button"
                    ng-click="ctrl.cancel()"
                    translate
                    translate-context="Action">Cancel
            </button>
            <button type="submit"
                    class="pm_button primary modal-footer-button"
                    ng-disabled="passwordModalForm.$valid === false"
                    translate
                    translate-context="Action">Submit
            </button>
        </div>
    </form>
    <div class="modal-overlay"></div>
</div>
